import { Router } from 'express'
import {
  userLogin,
  userRegisiter,
  userInfo,
  userLogout
} from '../controllers/userController'
const router = Router()

// 用户登陆
router.post('/login', userLogin)
// 用户注册
router.put('/regisiter', userRegisiter)
// 用户信息
router.get('/info', userInfo)
// 用户登出
router.get('/logout', userLogout)

export default router
